Optimal. Leaf size=85 \[ \frac{2 b x^{-n} (e x)^n \tanh ^{-1}\left (\frac{a+b \tan \left (\frac{1}{2} \left (c+d x^n\right )\right )}{\sqrt{a^2-b^2}}\right )}{a d e n \sqrt{a^2-b^2}}+\frac{(e x)^n}{a e n} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.154402, antiderivative size = 85, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 6, integrand size = 22, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.273, Rules used = {4209, 4205, 3783, 2660, 618, 206} \[ \frac{2 b x^{-n} (e x)^n \tanh ^{-1}\left (\frac{a+b \tan \left (\frac{1}{2} \left (c+d x^n\right )\right )}{\sqrt{a^2-b^2}}\right )}{a d e n \sqrt{a^2-b^2}}+\frac{(e x)^n}{a e n} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4209
Rule 4205
Rule 3783
Rule 2660
Rule 618
Rule 206
Rubi steps
\begin{align*} \int \frac{(e x)^{-1+n}}{a+b \csc \left (c+d x^n\right )} \, dx &=\frac{\left (x^{-n} (e x)^n\right ) \int \frac{x^{-1+n}}{a+b \csc \left (c+d x^n\right )} \, dx}{e}\\ &=\frac{\left (x^{-n} (e x)^n\right ) \operatorname{Subst}\left (\int \frac{1}{a+b \csc (c+d x)} \, dx,x,x^n\right )}{e n}\\ &=\frac{(e x)^n}{a e n}-\frac{\left (x^{-n} (e x)^n\right ) \operatorname{Subst}\left (\int \frac{1}{1+\frac{a \sin (c+d x)}{b}} \, dx,x,x^n\right )}{a e n}\\ &=\frac{(e x)^n}{a e n}-\frac{\left (2 x^{-n} (e x)^n\right ) \operatorname{Subst}\left (\int \frac{1}{1+\frac{2 a x}{b}+x^2} \, dx,x,\tan \left (\frac{1}{2} \left (c+d x^n\right )\right )\right )}{a d e n}\\ &=\frac{(e x)^n}{a e n}+\frac{\left (4 x^{-n} (e x)^n\right ) \operatorname{Subst}\left (\int \frac{1}{-4 \left (1-\frac{a^2}{b^2}\right )-x^2} \, dx,x,\frac{2 a}{b}+2 \tan \left (\frac{1}{2} \left (c+d x^n\right )\right )\right )}{a d e n}\\ &=\frac{(e x)^n}{a e n}+\frac{2 b x^{-n} (e x)^n \tanh ^{-1}\left (\frac{b \left (\frac{a}{b}+\tan \left (\frac{1}{2} \left (c+d x^n\right )\right )\right )}{\sqrt{a^2-b^2}}\right )}{a \sqrt{a^2-b^2} d e n}\\ \end{align*}
Mathematica [A] time = 0.2738, size = 79, normalized size = 0.93 \[ \frac{(e x)^n \left (-\frac{2 b x^{-n} \tan ^{-1}\left (\frac{a+b \tan \left (\frac{1}{2} \left (c+d x^n\right )\right )}{\sqrt{b^2-a^2}}\right )}{\sqrt{b^2-a^2}}+c x^{-n}+d\right )}{a d e n} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.396, size = 315, normalized size = 3.7 \begin{align*}{\frac{x}{an}{{\rm e}^{{\frac{ \left ( -1+n \right ) \left ( -i\pi \, \left ({\it csgn} \left ( iex \right ) \right ) ^{3}+i\pi \, \left ({\it csgn} \left ( iex \right ) \right ) ^{2}{\it csgn} \left ( ie \right ) +i\pi \, \left ({\it csgn} \left ( iex \right ) \right ) ^{2}{\it csgn} \left ( ix \right ) -i\pi \,{\it csgn} \left ( iex \right ){\it csgn} \left ( ie \right ){\it csgn} \left ( ix \right ) +2\,\ln \left ( e \right ) +2\,\ln \left ( x \right ) \right ) }{2}}}}}-{\frac{2\,ib{e}^{n}{{\rm e}^{-{\frac{i}{2}} \left ( \pi \,n \left ({\it csgn} \left ( iex \right ) \right ) ^{3}-\pi \,n{\it csgn} \left ( ie \right ) \left ({\it csgn} \left ( iex \right ) \right ) ^{2}-\pi \,n{\it csgn} \left ( ix \right ) \left ({\it csgn} \left ( iex \right ) \right ) ^{2}+\pi \,n{\it csgn} \left ( ie \right ){\it csgn} \left ( ix \right ){\it csgn} \left ( iex \right ) -\pi \, \left ({\it csgn} \left ( iex \right ) \right ) ^{3}+\pi \,{\it csgn} \left ( ie \right ) \left ({\it csgn} \left ( iex \right ) \right ) ^{2}+\pi \,{\it csgn} \left ( ix \right ) \left ({\it csgn} \left ( iex \right ) \right ) ^{2}-\pi \,{\it csgn} \left ( ie \right ){\it csgn} \left ( ix \right ){\it csgn} \left ( iex \right ) -2\,c \right ) }}}{aned}\arctan \left ({\frac{2\,ia{{\rm e}^{i \left ( d{x}^{n}+2\,c \right ) }}-2\,{{\rm e}^{ic}}b}{2}{\frac{1}{\sqrt{{a}^{2}{{\rm e}^{2\,ic}}-{{\rm e}^{2\,ic}}{b}^{2}}}}} \right ){\frac{1}{\sqrt{{a}^{2}{{\rm e}^{2\,ic}}-{{\rm e}^{2\,ic}}{b}^{2}}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 0.557037, size = 639, normalized size = 7.52 \begin{align*} \left [\frac{2 \,{\left (a^{2} - b^{2}\right )} d e^{n - 1} x^{n} + \sqrt{a^{2} - b^{2}} b e^{n - 1} \log \left (\frac{{\left (a^{2} - 2 \, b^{2}\right )} \cos \left (d x^{n} + c\right )^{2} + 2 \, \sqrt{a^{2} - b^{2}} a \cos \left (d x^{n} + c\right ) + a^{2} + b^{2} + 2 \,{\left (\sqrt{a^{2} - b^{2}} b \cos \left (d x^{n} + c\right ) + a b\right )} \sin \left (d x^{n} + c\right )}{a^{2} \cos \left (d x^{n} + c\right )^{2} - 2 \, a b \sin \left (d x^{n} + c\right ) - a^{2} - b^{2}}\right )}{2 \,{\left (a^{3} - a b^{2}\right )} d n}, \frac{{\left (a^{2} - b^{2}\right )} d e^{n - 1} x^{n} + \sqrt{-a^{2} + b^{2}} b e^{n - 1} \arctan \left (-\frac{\sqrt{-a^{2} + b^{2}} b \sin \left (d x^{n} + c\right ) + \sqrt{-a^{2} + b^{2}} a}{{\left (a^{2} - b^{2}\right )} \cos \left (d x^{n} + c\right )}\right )}{{\left (a^{3} - a b^{2}\right )} d n}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\left (e x\right )^{n - 1}}{a + b \csc{\left (c + d x^{n} \right )}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\left (e x\right )^{n - 1}}{b \csc \left (d x^{n} + c\right ) + a}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]